package com.pragati.jjcet.alumni;

import com.google.appengine.api.datastore.Key;

import java.util.Date;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable
public class Hits {
    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Key key;

    @Persistent
    private String emailid;

    @Persistent
    private String jid;

        
    @Persistent
    private Date hitDate;

    public Hits(String emailid, String jid, Date hitDate) {
        this.emailid = emailid;
        this.jid = jid;
        this.hitDate = hitDate;
    }

    // Accessors for the fields.  JDO doesn't use these, but your application does.

    public Key getKey() {
        return key;
    }

    public String getEmailId() {
        return emailid;
    } 
    public void setEmailId(String emailid) {
        this.emailid = emailid;
    } 

    public String getJid() {
        return jid;
    } 
    public void setJid(String jid) {
        this.jid = jid;
    } 
   
    public Date getHitDate() {
        return hitDate;
    } 
    public void setHitDate(Date hitDate) {
        this.hitDate = hitDate;
    } 
}